package com.cake.dao;

import java.util.List;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxCouponProductCategoryKey;

public interface XxCouponProductCategoryMapper extends IBaseDao<XxCouponProductCategoryKey> {
    
	int deleteByPrimaryKey(XxCouponProductCategoryKey key);

    int insert(XxCouponProductCategoryKey record);

    int insertSelective(XxCouponProductCategoryKey record);
    
    /**
     * 通过优惠券和商品分类中间表对象查询出一行数据
     * @param xxCouponProductCategoryKey
     * @return
     */
    XxCouponProductCategoryKey selectCouponProductCategoryKey(XxCouponProductCategoryKey xxCouponProductCategoryKey);
    
    /**
     * 根据商品分类查询出中间表对象列表
     * @param xxCouponProductCategoryKey
     * @return
     */
    List<XxCouponProductCategoryKey> selectByCouponIdOrProductCategoryId(XxCouponProductCategoryKey xxCouponProductCategoryKey);
    
    /**
     * 通过优惠券id删除中间表信息
     * @param couponId
     * @return
     */
    Integer deleteByCoupon(Long couponId);
}